package com.sun.designPattern.Observer.baseImp;

import java.util.Observer;

public class Test {

	public static void main(String[] args) {
		Observer observer = new testObServer();
		Observer o1 = new testObServer1();
		Watched observable = new Watched();
		observable.addObserver(observer);
		observable.addObserver(o1);
		for (int i = 0; i < 10; i++) {
			observable.change("111");
		}
	}

}